package rexsee.core.browser.clazz;

import java.util.ArrayList;

public class PauseListeners {
	private final ArrayList<Runnable> listeners;
	public PauseListeners() {
		listeners = new ArrayList<Runnable>();
	}
	public void add(Runnable listner) {
		listeners.add(listner);
	}
	public void clear() {
		listeners.clear();
	}
	public void run() {
		for (int i = 0; i < listeners.size(); i++)
			listeners.get(i).run();
	}
	public void remove(Runnable listener) {
		listeners.remove(listener);
	}
}
